package com.example.eureka.clientb.eurekaclientb;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DearController {
    @RequestMapping("/info")
    public String dear(){
        return "dear xxx，this is demo-client1 messge";
    }

    @RequestMapping("/producerDear")
    public String dear(@RequestParam("name") String name){
        return "dear " + name + "，this is demo-clientb messge";
    }


}
